Skip to content

Remove rhel 11 and centos 11 tests - #431

Open
pkhartsk wants to merge 2 commits into
sclorg:masterfrom
pkhartsk:remove-rhel-11-tests
Open

Remove rhel 11 and centos 11 tests#431
pkhartsk wants to merge 2 commits into
sclorg:masterfrom
pkhartsk:remove-rhel-11-tests

Conversation

@pkhartsk

@pkhartsk pkhartsk commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes
    • Improved Fedora configuration detection for version-specific filenames.
    • Updated automated container testing to use the currently supported operating system targets.

pkhartsk added 2 commits July 13, 2026 16:01
Main purpose is to enable easy distgenification of the
base and core containers.
@pkhartsk
pkhartsk requested a review from phracek July 27, 2026 13:39
@pkhartsk pkhartsk self-assigned this Jul 27, 2026
@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The workflow removes CentOS Stream 11 and RHEL 11 Testing Farm targets and selection branches. generator.py adds mapping for versioned Fedora filenames such as .fXX to matching distgen configuration files.

Changes

Testing Farm target selection

Layer / File(s) Summary
Remove unsupported Testing Farm targets
.github/workflows/container-tests.yml
The test matrix and Bash variable-selection logic no longer schedule or configure c11s and rhel11 targets.

Fedora distgen configuration

Layer / File(s) Summary
Map versioned Fedora filenames
generator.py
filename_to_distro_config() maps *.f<digits> filenames to fedora-<digits>-x86_64.yaml.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: phracek

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: removing RHEL 11 and CentOS 11 test references.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

Pull Request validation

Failed

🔴 Failed or pending statuses:

  • CodeRabbit[pending]

🔴 Review - Missing review from a member (1 required)


Triggered by Workflow Run

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/container-tests.yml (1)

52-53: 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Restore the missing fi statements.

The nested if opened around the RHEL selector is still open when the final fi closes the outer selector. Add one fi before the else for the RHEL block and another after that block so the embedded Bash is syntactically terminated and the workflow can run.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/container-tests.yml around lines 52 - 53, In the
workflow’s nested OS-selection shell logic, add the missing fi that closes the
RHEL8 conditional before its else branch, and add the corresponding fi after the
RHEL block before the outer selector is closed. Keep the existing branching
behavior unchanged while ensuring all nested if statements are syntactically
balanced.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@generator.py`:
- Around line 100-104: Update the relevant docstring and the RuntimeError
message in the suffix-handling logic to include the newly supported .fXX format
alongside .rhelXX, .cXs, and .fedora. Keep the existing suffix behavior
unchanged.
- Around line 100-101: Update the Fedora branch in the config-selection function
to verify the constructed fedora-<version>-x86_64.yaml value exists in mapping
before returning it; return the contractually required empty string when the
version is unsupported, while preserving the existing config for mapped
versions.

---

Outside diff comments:
In @.github/workflows/container-tests.yml:
- Around line 52-53: In the workflow’s nested OS-selection shell logic, add the
missing fi that closes the RHEL8 conditional before its else branch, and add the
corresponding fi after the RHEL block before the outer selector is closed. Keep
the existing branching behavior unchanged while ensuring all nested if
statements are syntactically balanced.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5d1bb3ad-f7df-4a98-af89-a7dd1febdf07

📥 Commits

Reviewing files that changed from the base of the PR and between 498153e and e25b495.

📒 Files selected for processing (2)
  • .github/workflows/container-tests.yml
  • generator.py

Comment thread generator.py
Comment on lines +100 to +101
elif fedora_match: # just for base and core images
config = f"fedora-{fedora_match.group(1)}-x86_64.yaml"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Validate the Fedora config against mapping before returning it.

This branch always returns a non-empty config, even when fedora-<digits>-x86_64.yaml is not available for the requested version. main() then invokes run_distgen() with an unsupported configuration, contradicting the function contract that missing combinations return an empty string.

Proposed fix
     elif fedora_match: # just for base and core images
         config = f"fedora-{fedora_match.group(1)}-x86_64.yaml"
+        if config not in mapping.get(version, []):
+            config = ""
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
elif fedora_match: # just for base and core images
config = f"fedora-{fedora_match.group(1)}-x86_64.yaml"
elif fedora_match: # just for base and core images
config = f"fedora-{fedora_match.group(1)}-x86_64.yaml"
if config not in mapping.get(version, []):
config = ""
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@generator.py` around lines 100 - 101, Update the Fedora branch in the
config-selection function to verify the constructed fedora-<version>-x86_64.yaml
value exists in mapping before returning it; return the contractually required
empty string when the version is unsupported, while preserving the existing
config for mapped versions.

Comment thread generator.py
Comment on lines +100 to 104
elif fedora_match: # just for base and core images
config = f"fedora-{fedora_match.group(1)}-x86_64.yaml"
else:
raise RuntimeError(
f"File {filename} does not match any of the known suffixes: .rhelXX, .cXs, or .fedora"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Document the new .fXX suffix.

The docstring and unknown-suffix error still list only .rhelXX, .cXs, and .fedora, so the newly supported .fXX format is undocumented and omitted from the diagnostic message.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@generator.py` around lines 100 - 104, Update the relevant docstring and the
RuntimeError message in the suffix-handling logic to include the newly supported
.fXX format alongside .rhelXX, .cXs, and .fedora. Keep the existing suffix
behavior unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant